package com.jbm.jsm.common;

import com.jbm.core.common.AccountCtrl;
import com.jbm.core.common.ConnectAgent;
import com.jbm.core.common.MainServer;
import com.jbm.core.iface.IAcross;
import com.jbm.core.iface.IP2P;
import com.jbm.jsm.iface.AdminEntity;
import com.jbm.jsm.iface.AdvertEntity;
import com.jbm.jsm.iface.ArbitrateEntity;
import com.jbm.jsm.iface.ArbitrateInfoEntity;
import com.jbm.jsm.iface.ArbitrateLogEntity;
import com.jbm.jsm.iface.Aribitrate;
import com.jbm.jsm.iface.AttachmentEntity;
import com.jbm.jsm.iface.AuthorityEntity;
import com.jbm.jsm.iface.BankCardEntity;
import com.jbm.jsm.iface.BankEntity;
import com.jbm.jsm.iface.BlacklistEntity;
import com.jbm.jsm.iface.CheatdatabaseEntity;
import com.jbm.jsm.iface.CodeCatalogEntity;
import com.jbm.jsm.iface.CodePropertyEntity;
import com.jbm.jsm.iface.ComplaintEntity;
import com.jbm.jsm.iface.ConsumConfigEntity;
import com.jbm.jsm.iface.DepositLogEntity;
import com.jbm.jsm.iface.DubiousEntity;
import com.jbm.jsm.iface.ExamEntity;
import com.jbm.jsm.iface.GeoInfoEntity;
import com.jbm.jsm.iface.GetcashEntity;
import com.jbm.jsm.iface.GoodsTypeEntity;
import com.jbm.jsm.iface.IAplipay;
import com.jbm.jsm.iface.IAppVersion;
import com.jbm.jsm.iface.InvitationCodeEntity;
import com.jbm.jsm.iface.JinmiLogEntity;
import com.jbm.jsm.iface.Message;
import com.jbm.jsm.iface.MessageEntity;
import com.jbm.jsm.iface.MibaoLogEntity;
import com.jbm.jsm.iface.OperLogEntity;
import com.jbm.jsm.iface.OrderData;
import com.jbm.jsm.iface.OrderEntity;
import com.jbm.jsm.iface.RoomEntity;
import com.jbm.jsm.iface.RoomFocusAuditEntity;
import com.jbm.jsm.iface.SmallAccountEntity;
import com.jbm.jsm.iface.TaskEntity;
import com.jbm.jsm.iface.TaskMouldEntity;
import com.jbm.jsm.iface.TaskMouldRequireEntity;
import com.jbm.jsm.iface.TrustSmEntity;
import com.jbm.jsm.iface.UserAuthorityApplyEntity;
import com.jbm.jsm.iface.UserAuthorityEntity;
import com.jbm.jsm.iface.UserEntity;
import com.jbm.jsm.iface.UserExamProgressEntity;
import com.jbm.jsm.iface.UserRoomEntity;
import com.jbm.jsm.iface.VerifyCodeEntity;
import com.jbm.jsm.iface.ZhimaCert;

import java.io.RandomAccessFile;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;


public class OHInterface extends MainServer
{
    static
    {
        MainServer.setG_server(new OHInterface());
    }

    public static OHInterface getG_server()
    {
        return (OHInterface)MainServer.getG_server();
    }

    private Integer m_local_id=AccountCtrl.Account_Server_id;

    public  UserEntity userEntity;//用户账号
    public AdminEntity adminEntity; //管理员账号
    boolean islogin = false;
    public String account="";
    public String password="";
    public String ip="";
    public String mac="";
    public String city="";
    public String region="";
    public String clientIp="";
    public String logo="";

    public String login()
    {
        UserEntity userEntity1= this.login(account,password,ip,mac,city,region,"");
        return "";

    }
    public void cancellogin()
    {
        islogin = false;
    }
    public boolean islogin()
    {
        return islogin;
    }

    //注册第一步，验证邀请码
    public IAcross verifyInvitation(String code, ConnectAgent... param )
    {

        IAcross ia = (IAcross) Remote(param, IAcross.class, AccountCtrl.Account_Server_id,"app_server",new InvitationCodeEntity(code),"verifyInvitation",true,true,false,false);
        ia.method="verifyInvitation";
        return ia;
    }
    //发送验证码  type见枚举VerifyType
    public IAcross createVCode ( String mobile, String type, ConnectAgent... param )
    {
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",new VerifyCodeEntity(   mobile, type ),"createVCode",true,true);
        back.method="createVCode";
        return back;
    }
    //判断昵称是否重复
    public IAcross nicknamerepeate ( String nickname,  ConnectAgent... param )
    {
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",new UserEntity( null,null,null,nickname,null,null,null ),"nicknamerepeate",true,true);
        back.method="nicknamerepeate";
        return back;
    }


    /**
     *@Description:判断手机重复
     *@param:
     *
     */
    public IAcross mobilerepeate ( String mobile,  ConnectAgent... param )
    {
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",new UserEntity( mobile,null,null,null,null,null,null ),"mobilerepeate",true,true);
        back.method="mobilerepeate";
        return back;
    }
    /**
     *@Description:注册
     *@param:invitation_code:邀请码
     *@param:vcode:验证码
     *
     */
    public UserEntity registUser(String mobile,String invitation_code,String vcode,String nickname,String password, String  qq,String region,ConnectAgent... param )
    {
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",new UserEntity(mobile,invitation_code,vcode,nickname,password,qq,region ),"registUser",true,true);
        back.method="registUser";

        return back;
    }

    /**
     *@Description:设置接单密码
     *@param:
     *
     */
    public IAcross setWorkPass(String password,ConnectAgent... param)
    {
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",new UserEntity(password),"setWorkPass",true,true);
        back.method="setWorkPass";
        return back;
    }


    /**
     *@Description:登录
     *@param: city访问城市
     *
     */
    public UserEntity login(String name,String password,String ip,String mac,String city, String region ,String position, ConnectAgent... param )
    {
        UserEntity o=new UserEntity();
        o.setAccount(name);
        o.setPassword(password);
        o.setLastIp(ip);
        o.setMac(mac);
        o.setCity(city);
        o.setRegion(region);
         o.setIdentitys(position);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"login",true,true);
        if(back.m_code==200)
        {
            this.account=name;
            this.password=password;
            this.ip=ip;
            this.mac=mac;
            this.city=city;
            this.region=region;
            this.islogin=true;
        }
         back.method="login";
        return back;
    }

    /**
     *@Description:待审核注册用户列表
     *@param:
     *
     */
    public UserEntity getAuditRegitlist(ConnectAgent... param)
    {
        UserEntity o=  new UserEntity();
        o.setAuditMemo(" ");    //无意义
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAuditRegitlist",true,true);
        back.method="getAuditRegitlist";
        return back;
    }
    /**
     *@Description:审核注册
     *@param: status 1通过 2拒绝  reason拒绝理由
     *
     */
    public IAcross AuditRegist(int user_id,int status,String reason,ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        o.setStatus(status);
        o.setAuditMemo(reason);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"AuditRegist",true,true);
        back.method="AuditRegist";
        return back;
    }
    /**
     *@Description:审核权限  接口作废
     *@param: auths逗号分隔的权限id列表
     *  @param: authtype 1注册审核 2申请审核
     *
     */
//    public IAcross auditAuth(int user_id,String auths,int authtype,ConnectAgent... param)
//    {
//        UserAuthorityEntity o=new UserAuthorityEntity();
//        o.setUserId(user_id);
//        o.setAuths(auths);
//        o.setAuthtype(authtype);
//        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"auditAuth",true,true);
//        return back;
//    }
    /**
     *@Description: 保存任务模板
     *@param:tmName模板名称  taskEnvironment任务环境 platType任务平台 payType付款方式   taskType任务类型 fee追加佣金 goodsAmount连接数 orderNumbers saLevel小号等级 sDay sWeek sMonth 日月年不过 sIsRealname是否实名认证    sIsSeller允许卖家接单 sIsBaduser允许中差评 saSex下号性别 sSatisfy接单人满意度 sLimitDay限制天数 requirement接单要求 freight运费 comment收菜评语 geolist接单人地区(只需设置giId) goodslist商品列表
     *
     */

    public TaskMouldEntity saveTaskModule(TaskMouldEntity taskMould ,ConnectAgent... param)
    {
        TaskMouldEntity back = (TaskMouldEntity)Remote(param, TaskMouldEntity.class,AccountCtrl.Account_Server_id,"app_server",taskMould,"saveTaskModule",true,true);
        back.method="saveTaskModule";
        return back;
    }

    /**
     *@Description: 保存任务
     *@param:tmName模板名称  taskEnvironment任务环境 platType任务平台 payType付款方式   taskType任务类型 fee追加佣金 goodsAmount连接数 orderNumbers saLevel小号等级(逗号分隔的字符串) sDay sWeek sMonth 日月年不过 sIsRealname是否实名认证    sIsSeller允许卖家接单 sIsBaduser允许中差评 saSex下号性别 sSatisfy接单人满意度 sLimitDay限制天数 requirement接单要求 freight运费 comment收菜评语 geolist接单人地区(只需设置giId) goodslist商品列表
     *
     */

    public TaskEntity saveTask (TaskEntity task ,ConnectAgent... param)
    {
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",task,"saveTask",true,true);
        back.method="saveTask";
        return back;
    }
    /**
     *@Description:我的模板列表
     *@param: 1淘宝 2京东
     *status 逗号分隔的状态串,全部传“”
     */
    public TaskMouldEntity getMyModuleList(String keyword,int plat_type,String status, int start,int pagesize, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity(start,pagesize);
        o.setPlatType(plat_type);
        o.setComment(" ");//无意义
        o.setAuditCn(status);
        o.setPlatTypeS(keyword);
        TaskMouldEntity back = (TaskMouldEntity)Remote(param, TaskMouldEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyModuleList",true,true);
        back.method="getMyModuleList";
        return back;
    }
    /**
     *@Description:我的任务列表
     *@param: taskstatus  paytype plattype见枚举
     *
     */
    public TaskEntity getMyTaskList(int taskstatus,int paytype,int plattype,  int start,int pagesize, ConnectAgent... param)
    {
        TaskEntity o=new TaskEntity(taskstatus,paytype,plattype, start,pagesize);
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyTaskList",true,true);
        back.method="getMyTaskList";
        return back;
    }
    /**
     *@Description:下拉列表
     *@param: code 见枚举Catalog
     *
     */
    public CodeCatalogEntity getPropertyList(String code, ConnectAgent... param)
    {
        CodeCatalogEntity back = (CodeCatalogEntity)Remote(param, CodeCatalogEntity.class,AccountCtrl.Account_Server_id,"app_server",new CodePropertyEntity(code),"getPropertyList",true,true);
        back.method="getPropertyList";
        return back;
    }


    /**
     *@Description:接单大厅列表
     *@param: sa_level小号等级 isbzj保证金有1无0
     *
     */
    public TaskEntity getTaskViewList(int plattype ,int paytype,int sa_level,int task_environment,int isbzj, int start,int pagesize, ConnectAgent... param)
    {
        TaskEntity o=new TaskEntity(0,paytype,plattype, start,pagesize);
        o.setSaLevel(String.valueOf(sa_level));
        o.setTaskEnvironment(task_environment);
        o.settId(isbzj);
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getTaskViewList",true,true);
        back.method="getTaskViewList";
        return back;
    }


    /**
     *@Description:抢单
     *@param:sa_id 淘宝小号id
     * @ret:
     *
     */
    public OrderEntity competOrders(int  task_Id,int sa_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.settId(task_Id);
        o.setSaId(sa_id);

        OrderEntity back = (OrderEntity)Remote(param, OrderEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"competOrders",true,true);
        back.method="competOrders";
        return back;
    }

    /**
     *@Description:获取所有属性
     *@param:
     *
     */
    public CodeCatalogEntity getAllPropertyList(ConnectAgent... param)
    {
        CodeCatalogEntity back = (CodeCatalogEntity)Remote(param, CodeCatalogEntity.class,AccountCtrl.Account_Server_id,"app_server",new CodePropertyEntity(" "),"getAllPropertyList",true,true);
        back.method="getAllPropertyList";
        return back;
    }

    /**
     *@Description:抢单列表
     *@param:
     *
     */
    public TaskEntity getcompetOrderList( int task_id,int start,int pagesize, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.settId(task_id);
        o.start=start;o.pagesize=pagesize;
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getcompetOrderList",true,true);
        back.method="getcompetOrderList";
        return back;
    }

    /**
     *@Description:审核抢单信息
     *@param: result 1通过 2拒绝
     *
     */
    public IAcross checkCompetOrder(int order_id,int result, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setValid(result);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"checkCompetOrder",true,true);
        back.method="checkCompetOrder";
        return back;
    }

    /**
     *@Description:芝麻信用
     *@param:
     *
     */
    public ZhimaCert ZhimaCertInit(String transaction_id, String cert_name, String cert_no,  String return_url,ConnectAgent... param)
    {
        ZhimaCert o=  new ZhimaCert(transaction_id,cert_name,cert_no);
        o.mobile=return_url;
        return (ZhimaCert)Remote(param,ZhimaCert.class,AccountCtrl.Account_Server_id,"app_server",o,"Initialize",true,true);
    }

    /// <summary>
    /// 实名认证
    /// </summary>
    /// <param name="password">密码</param>
    /// <returns></returns>
    public ZhimaCert ALRealName(String zpath, String fpath, ConnectAgent... param)
    {
        try
        {
            RandomAccessFile raf_z = new RandomAccessFile(zpath, "r");
            RandomAccessFile raf_f = new RandomAccessFile(fpath, "r");

            int size_z = (int) raf_z.length();
            int size_f = (int) raf_f.length();

            ZhimaCert zc = new ZhimaCert();

            zc.id_pic_z = new byte[size_z];
            raf_z.read(zc.id_pic_z);
            raf_z.close();

            zc.id_pic_f = new byte[size_f];
            raf_f.read(zc.id_pic_f);
            raf_f.close();

            return (ZhimaCert) Remote(param, ZhimaCert.class, AccountCtrl.Account_Server_id, "app_server", zc, "ALRealName", true, true);
        }catch (Exception e)
        {
            ZhimaCert zc = new ZhimaCert();
            zc.m_code = 500;
            zc.m_info = e.getMessage();

            return zc;
        }
    }

    public IAcross FQZ(String bank_card, String mobile, String idcard, String fullname, ConnectAgent... param )
    {
        ZhimaCert zc = new ZhimaCert();

        zc.bank_card = bank_card;
        zc.mobile = mobile;
        zc.idcard = idcard;
        zc.cert_name = " ";
        zc.fullname = fullname;

        return Remote(param, IAcross.class, AccountCtrl.Account_Server_id, "app_server", zc, "FQZ", true, true);
    }

    /**
     *@Description:全国城市列表
     *@param:
     *
     */
    public GeoInfoEntity getGeoInfoList(String type, ConnectAgent... param)
    {
        GeoInfoEntity o=new GeoInfoEntity();
        o.setGiName(" ");
        o.setType(type);
        GeoInfoEntity back = (GeoInfoEntity)Remote(param, GeoInfoEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getGeoInfoList",true,true);
        back.method="getGeoInfoList";
        return back;
    }

    /// <summary>
    /// 全国城市列表 绑卡用
    /// </summary>
    /// <param name="type">发单选择城市s  ,绑卡选择开户地f</param>
    /// <param name="prev_id">全部传-1   所有省份列表传1  其他传父id</param>
    /// <returns></returns>
    public GeoInfoEntity getLevelGeoInfoList(String type,int prev_id, ConnectAgent... param)
    {
        GeoInfoEntity o=new GeoInfoEntity();
        o.setGiName(" ");
        o.setType(type);
        o.setPrevId(prev_id);
        GeoInfoEntity back = (GeoInfoEntity)Remote(param, GeoInfoEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getLevelGeoInfoList",true,true);
        back.method="getLevelGeoInfoList";
        return back;
    }

    /**
     *@Description:商品类别列表
     *@param:
     *
     */
    public GoodsTypeEntity getGoodsTypeList( ConnectAgent... param)
    {
        GoodsTypeEntity o=new GoodsTypeEntity();
        o.setCode(" ");
        GoodsTypeEntity back = (GoodsTypeEntity)Remote(param, GoodsTypeEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getGoodsTypeLists",true,true);
        back.method="getGoodsTypeList";
        return back;
    }

    /**
     *@Description: 消耗米宝或金米配置列表
     *@param:
     *
     */
    public ConsumConfigEntity getConsumConfigList(ConnectAgent... param)
    {
        ConsumConfigEntity o=new ConsumConfigEntity();
        o.setCode(" ");
        ConsumConfigEntity back = (ConsumConfigEntity)Remote(param, ConsumConfigEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getConsumConfigList",true,true);
        back.method="getConsumConfigList";
        return back;
    }

    /// <summary>
    /// 验证接单密码
    /// </summary>
    /// <param name="password">密码</param>
    /// <returns></returns>
    public IAcross verifyWorkPass(String password,ConnectAgent... param)
    {
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",new UserEntity(password),"verifyWorkPass",true,true);
        back.method="verifyWorkPass";
        return back;
    }

    /// <summary>
    /// 刷手取消订单
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross cancelOrderSS(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"cancelOrderSS",true,true);
        back.method="cancelOrderSS";
        return back;
    }


    /// <summary>
    /// 商家确认 刷手取消订单申请
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross auditcancelOrderSS(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"auditcancelOrderSS",true,true);
        back.method="auditcancelOrderSS";
        return back;
    }

    /// <summary>
    /// 系统自动审核取消订单申请
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross autoAuditcancelOrderSS(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"autoAuditcancelOrderSS",true,true);
        back.method="autoAuditcancelOrderSS";
        return back;
    }


    /// <summary>
    /// 商家取消订单
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross cancelOrderSJ(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"cancelOrderSJ",true,true);
        back.method="cancelOrderSJ";
        return back;
    }

    /// <summary>
    /// 刷手确认 商家取消订单申请
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross auditcancelOrderSJ(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"auditcancelOrderSJ",true,true);
        back.method="auditcancelOrderSJ";
        return back;
    }

    /// <summary>
    /// 系统自动审核取消订单申请 商家申请
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross autoAuditcancelOrderSJ(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"autoAuditcancelOrderSJ",true,true);
        back.method="autoAuditcancelOrderSJ";
        return back;
    }

    /// <summary>
    /// 刷手点击做单完成
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <param name="ordercode">淘宝或京东订单编号</param>
    /// <returns></returns>
    public IAcross overOrderSS(int order_id,String ordercode ,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setOrderCode(ordercode);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"overOrderSS",true,true);
        back.method="overOrderSS";
        return back;
    }


    /// <summary>
    /// 同步小号
    /// </summary>
    /// <param name="SmallAccountEntity">小号实体类</param>
    /// <returns></returns>
    public SmallAccountEntity synchSmallAccount(SmallAccountEntity o,ConnectAgent... param)
    {

        SmallAccountEntity back = (SmallAccountEntity)Remote(param, SmallAccountEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"synchSmallAccount",true,true);
        back.method="synchSmallAccount";
        return back;
    }
    /// <summary>
    /// 商家点击做单完成
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross overOrderSJ(int order_id,String ordercode,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setOrderCode(ordercode);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"overOrderSJ",true,true);
        back.method="overOrderSJ";
        return back;
    }
    /// <summary>
    /// 刷手点击收菜完成
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <param name="ordercode">淘宝或京东订单编号</param>
    /// <returns></returns>
    public IAcross allOverOrderSS(int order_id,String ordercode,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setOrderCode(ordercode);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"allOverOrderSS",true,true);
        back.method="allOverOrderSS";
        return back;
    }

    /// <summary>
    /// 商家点击收菜完成
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross allOverOrderSJ(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"allOverOrderSJ",true,true);
        back.method="allOverOrderSJ";
        return back;
    }

    /// <summary>
    /// 我的小号列表
    /// </summary>
    /// <returns></returns>
    public SmallAccountEntity getMyAccountList(int plat_type,ConnectAgent... param)
    {
        SmallAccountEntity o=new SmallAccountEntity();
        o.setPlatType(plat_type);
        SmallAccountEntity back = (SmallAccountEntity)Remote(param, SmallAccountEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyAccountList",true,true);
        back.method="getMyAccountList";
        return back;
    }

    /// <summary>
    /// 小号列表
    /// </summary>
    /// <returns></returns>
    public SmallAccountEntity getAccountList(int plat_type,int user_id, ConnectAgent... param)
    {
        SmallAccountEntity o=new SmallAccountEntity();
        o.setPlatType(plat_type);
        o.setUserId(user_id);
        SmallAccountEntity back = (SmallAccountEntity)Remote(param, SmallAccountEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAccountList",true,true);
        back.method="getAccountList";
        return back;
    }
    /// <summary>
    /// 我的订单列表 刷手端
    /// </summary>
    /// <param name="status">订单状态</param>
    /// <param name="plat_type">平台类型 1淘宝 2京东</param>
    /// <param name="pay_type">平付款类型 1垫付  2远程</param>
    /// <param name="keyword">商家 qq或者名片关键字</param>
    /// <returns></returns>
    public TaskEntity getMyOrdderlist(Integer status,int plat_type,int pay_type,String keyword, int start,int pagesize, ConnectAgent... param)
    {
        TaskEntity t=new TaskEntity();
        t.setPlatType(plat_type);
        t.setPayType(pay_type);
        OrderEntity o=new OrderEntity();
        o.setStatus(status);
        o.setTaskEntity(t);
        o.setOrderCodeOuter(keyword);
        o.setOrderCode(" ");
        o.start=start;
        o.pagesize=pagesize;
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyOrdderlist",true,true);
        back.method="getMyOrdderlist";
        return back;
    }
    /// <summary>
    /// 任务订单列表 商家端
    /// </summary>
    /// <param name="task_id">任务id</param>
    /// <returns></returns>
    public TaskEntity getTaskOrderList( int task_id,int start,int pagesize, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.settId(task_id);
        o.start=start;o.pagesize=pagesize;
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getTaskOrderList",true,true);
        back.method="getTaskOrderList";
        return back;
    }


    /**
     *@Description:抢单
     *@param:task_Id 任务id,smallAccountEntity 小号实体
     * @ret:
     *
     */
    public OrderEntity competOrders(int  task_Id,SmallAccountEntity smallAccountEntity,ConnectAgent... param)
    {
        OrderEntity back=new OrderEntity();
        boolean istrue=true;
        if(smallAccountEntity!=null) {
            SmallAccountEntity r = synchSmallAccount(smallAccountEntity, param);
            if (r.m_code == 200) {
                OrderEntity o = new OrderEntity();
                o.settId(task_Id);
                o.setSaId(r.getSaId());

                back = (OrderEntity) Remote(param, OrderEntity.class, AccountCtrl.Account_Server_id, "app_server", o, "competOrders", true, true);
                back.method = "competOrders";
                return back;
            } else {
                back.m_code = r.m_code;
                back.m_info = r.m_info;
                back.method = "competOrders";
                return back;
            }
        }
        else
        {
            OrderEntity o = new OrderEntity();
            o.settId(task_Id);
            o.setSaId(0);
            back = (OrderEntity) Remote(param, OrderEntity.class, AccountCtrl.Account_Server_id, "app_server", o, "competOrders", true, true);
            back.method = "competOrders";
            return back;
        }
    }



    /// <summary>
    /// 用户基本信息 包括金米 米宝 保证金  余额 及垫付款 佣金数额
    /// </summary>
    /// <returns></returns>
    public UserEntity getUserInfo(  ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setRegion(" ");
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getUserInfo",true,true);
        back.method="getUserInfo";
        return back;
    }
    /// <summary>
    /// 获得下级房间列表
    /// </summary>
    /// <param name="roomid">房间id</param>
    /// <returns></returns>
    public RoomEntity getSubroomList(int room_id,int start,int pagesize,  ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setPrevId(room_id);
        o.start=start;
        o.pagesize=pagesize;
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getSubroomList",true,true);
        back.method="getSubroomList";
        return back;
    }
    /// <summary>
    /// 生成邀请码
    /// </summary>
    /// <param name="roomid">房间id</param>
    /// <param name="numbers">人数</param>
    /// <param name="identy">身份</param>
    /// <returns></returns>
    public IAcross createInvitationCode(int roomid,int numbers,int identy,  ConnectAgent... param)
    {
        InvitationCodeEntity o=new InvitationCodeEntity();
        o.setIdentity(identy);
        o.setRoomId(roomid);
        o.setIcId(numbers);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"createInvitationCode",true,true);
        back.method="createInvitationCode";
        return back;
    }

    /// <summary>
    ///  我的全部邀请码列表 可自行统计已使用未使用数量 status=0未使用 1已使用
    /// </summary>
    /// <returns></returns>
    public InvitationCodeEntity getInvitationCodeList( ConnectAgent... param)
    {
        InvitationCodeEntity o=new InvitationCodeEntity();
        o.setCode(" ");
        InvitationCodeEntity back = (InvitationCodeEntity)Remote(param, InvitationCodeEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getInvitationCodeList",true,true);
        back.method="getInvitationCodeList";
        return back;
    }

    /// <summary>
    ///  通过账号查询用户 米宝充值可用
    /// </summary>
    /// <returns></returns>
    public UserEntity getUserInfo(String account, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setAccount(account);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getUserInfoByaccount",true,true);
        back.method="getUserInfo";
        return back;
    }

    /// <summary>
    /// 米宝充值
    /// </summary>
    /// <param name="account">充值账号</param>
    /// <param name="amount">米宝数量</param>
    /// <param name="price">单价</param>
    /// <param name="sum">充值金额</param>
    /// <returns></returns>
    public IAcross rechargeMibao(int userId,int amount,BigDecimal price,BigDecimal sum,  ConnectAgent... param)
    {
        MibaoLogEntity o=new MibaoLogEntity();
        o.setAmount(amount);
        o.setPrice(price);
        o.setSum(sum);
        o.setUserId(userId);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"rechargeMibao",true,true);
        back.method="rechargeMibao";
        return back;
    }


    /// <summary>
    /// 米宝记录 给其他会员充值记录
    /// </summary>
    /// <param name="key">查询关键字</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <returns></returns>
    public MibaoLogEntity getMibaoList(String key,String startdate,String enddate, int start,int pagesize, ConnectAgent... param)
    {
        MibaoLogEntity o=new MibaoLogEntity();
        o.setMemo(key);
        o.setStartDate(startdate);
        o.setEndDate(enddate);
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        MibaoLogEntity back = (MibaoLogEntity)Remote(param, MibaoLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMibaoList",true,true);
        back.method="getMibaoList";
        return back;
    }

    /// <summary>
    /// 我的米宝记录
    /// </summary>
    /// <returns></returns>
    public MibaoLogEntity getMyMibaoList( int start,int pagesize, ConnectAgent... param)
    {
        MibaoLogEntity o=new MibaoLogEntity();
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        MibaoLogEntity back = (MibaoLogEntity)Remote(param, MibaoLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyMibaoList",true,true);
        back.method="getMyMibaoList";
        return back;
    }

    /// <summary>
    /// 修改密码
    /// </summary>
    /// <returns></returns>
    public IAcross modPassword( String oldpassword,String newpassword, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setPassword(oldpassword);
        o.setWorkPassword(newpassword);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"modPassword",true,true);
        back.method="modPassword";
        return back;
    }
    /// <summary>
    /// 修改接单密码
    /// </summary>
    /// <returns></returns>
    public IAcross modWorkPassword( String oldpassword,String newpassword, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setPassword(oldpassword);
        o.setWorkPassword(newpassword);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"modWorkPassword",true,true);
        back.method="modWorkPassword";
        return back;
    }

    /// <summary>
    /// 修改小号备注名称
    /// </summary>
    /// <param name="sa_id">小号id</param>
    /// <param name="name">新名称</param>
    /// <returns></returns>
    public IAcross modSmallAccount(int sa_id, String name,ConnectAgent... param)
    {
        SmallAccountEntity o=new SmallAccountEntity();
        o.setMemoNew(name);
        o.setSaId(sa_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"modSmallAccount",true,true);
        back.method="modSmallAccount";
        return back;
    }

    /// <summary>
    /// 删除小号 禁用接口
    /// </summary>
    /// <param name="sa_id">小号id</param>
    /// <returns></returns>
    public IAcross delSmallAccount(int sa_id,ConnectAgent... param)
    {
        SmallAccountEntity o=new SmallAccountEntity();
        o.setSaId(sa_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"delSmallAccount",true,true);
        back.method="delSmallAccount";
        return back;
    }


    /// <summary>
    /// 我的垫付款冻结记录
    /// </summary>
    /// <returns></returns>
    public TaskEntity getMyIceUserPayList(int start,int pagesize,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.start=start;
        o.pagesize=pagesize;
        o.setOrderCode(" ");
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyIceUserPayList",true,true);
        back.method="getMyIceUserPayList";
        return back;
    }

    /// <summary>
    /// 我的佣金冻结记录
    /// </summary>
    /// <returns></returns>
    public TaskEntity getMyIceDepositList(int start,int pagesize,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.start=start;
        o.pagesize=pagesize;
        o.setOrderCode(" ");
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyIceDepositList",true,true);
        back.method="getMyIceDepositList";
        return back;
    }
    /// <summary>
    /// 我的银行卡列表
    /// </summary>
    /// <returns></returns>
    public BankCardEntity getMyBankCardList(ConnectAgent... param)
    {
        BankCardEntity o=new BankCardEntity();
        o.setCardNo(" ");
        BankCardEntity back = (BankCardEntity)Remote(param, BankCardEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyBankCardList",true,true);
        back.method="getMyBankCardList";
        return back;
    }


    /// <summary>
    /// 取消任务
    /// </summary>
    /// <param name="task_id">任务id</param>
    /// <returns></returns>
    public IAcross cancelTask(int task_id,ConnectAgent... param)
    {
        TaskEntity o=new TaskEntity();
        o.settId(task_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"cancelTask",true,true);
        back.method="cancelTask";
        return back;
    }
    /// <summary>
    /// 垫付款申请解冻
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross iceoutApply(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"iceoutApply",true,true);
        back.method="iceoutApply";
        return back;
    }

    /// <summary>
    /// 申请解冻列表
    /// </summary>
    /// <returns></returns>
    public  TaskEntity getIceOutList( ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderCode(" ");
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getIceOutList",true,true);
        back.method="getIceOutList";
        return back;
    }


    /// <summary>
    ///系统自动审核抢单信息
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public IAcross autoCheckCompetOrder(int order_id, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"autoCheckCompetOrder",true,true);
        back.method="autoCheckCompetOrder";
        return back;
    }
    /// 举报
    /// </summary>
    /// <param name="user_id">被举报人id</param>
    /// <param name="content">内容</param>
    /// <param name="type">举报类别</param>
    /// <param name="attlist">图片列表</param>
    /// <returns></returns>
    public IAcross complaint(int user_id,String content,int type,List<AttachmentEntity> attlist, ConnectAgent... param)
    {
        ComplaintEntity o=new ComplaintEntity();
        o.setLoginId(user_id);
        o.setContent(content);
        o.setType(type);
        o.setAttachlist(attlist);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"complaint",true,true);
        back.method="complaint";
        return back;
    }

    /// <summary>
    /// 申请仲裁
    /// </summary>
    /// <param name="user_id">被仲裁人id</param>
    /// <param name="order_id">订单id</param>
    /// <param name="content">内容</param>
    /// <param name="type">举报类别</param>
    /// <param name="arbi_type">商家投诉刷手1  刷手投诉商家2</param>
    /// <param name="attlist">图片列表</param>
    /// <returns></returns>
    public IAcross arbitrateApply(int order_id,int user_id,int arbi_type, String content,int type, List<AttachmentEntity> attlist,ConnectAgent... param)
    {
        ArbitrateEntity o=new ArbitrateEntity();
        o.setAttachlist(attlist);
        o.setMemo(content);
        o.setTargetuserId(user_id);
        o.setOrderId(order_id);
        o.setArbiType(arbi_type);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"arbitrateApply",true,true);
        back.method="arbitrateApply";
        return back;
    }

    /// <summary>
    /// 我的仲裁列表
    /// </summary>
/// <param name="key">查询关键字</param>
    /// <param name="status">1 已处理 0未处理 2处理中 -1全部</param>
    /// <returns></returns>
    public ArbitrateEntity getMyArbitrateList( int status,String key,int start,int pagesize,  ConnectAgent... param)
    {
        ArbitrateEntity o=new ArbitrateEntity();
        o.setStatus(status);
        o.setMemo(key);
        o.setArbiType(1);
        o.start=start;
        o.pagesize=pagesize;

        ArbitrateEntity back = (ArbitrateEntity)Remote(param, ArbitrateEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyArbitrateList",true,true);
        back.method="getMyArbitrateList";
        return back;
    }
    /// <summary>
    ///  仲裁处理选择项
    /// </summary>
    /// <returns></returns>
    public ArbitrateInfoEntity getArbitrateInfoLists( ConnectAgent... param)
    {
        ArbitrateInfoEntity o=new ArbitrateInfoEntity();
        o.setMemo(" ");

        ArbitrateInfoEntity back = (ArbitrateInfoEntity)Remote(param, ArbitrateInfoEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getArbitrateInfoLists",true,true);
        back.method="getArbitrateInfoLists";
        return back;
    }
    /// <summary>
    ///  仲裁
    /// </summary>
    /// <param name="a_id">仲裁id</param>
    /// <param name="al_id">仲裁处理意见id</param>
    /// <param name="auditResult">1 同意 2不同意</param>
    /// <param name="result">下拉选择</param>
    /// <returns></returns>
    public IAcross doArbitrate( int a_id,int al_id,int auditResult, int result,ConnectAgent... param)
    {
        ArbitrateLogEntity o=new ArbitrateLogEntity();
        o.setaId(a_id);
        o.setAlId(al_id);
        o.setAuditResult(auditResult);
        o.setResult(result);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"doArbitrate",true,true);
        back.method="doArbitrate";
        return back;
    }
    /// <summary>
    ///  仲裁列表 所有下属仲裁事件
    /// </summary>
    /// <returns></returns>
    public ArbitrateEntity getArbirateList(int start,int pagesize,  ConnectAgent... param)
    {
        ArbitrateEntity o=new ArbitrateEntity();
        o.start=start;
        o.pagesize=pagesize;
        o.setMemo(" ");
        ArbitrateEntity back = (ArbitrateEntity)Remote(param, ArbitrateEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getArbirateList",true,true);
        back.method="getArbirateList";
        return back;
    }

    /// <summary>
    /// 获得订单买卖双方人员信息
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public OrderEntity getOrderUserInfo(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);

        OrderEntity back = (OrderEntity)Remote(param, OrderEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getOrderUserInfo",true,true);
        back.method="getOrderUserInfo";
        return back;
    }


    /// <summary>
    ///  仲裁数据统计
    /// </summary>
    /// <returns></returns>
    public Aribitrate getArbirateData(  ConnectAgent... param)
    {
        ArbitrateEntity o=new ArbitrateEntity();
        o.setMemo(" ");
        Aribitrate back = (Aribitrate)Remote(param, Aribitrate.class,AccountCtrl.Account_Server_id,"app_server",o,"getArbirateData",true,true);
        back.method="getArbirateData";
        return back;
    }

    /// <summary>
    /// 我的米宝列表 可用于奖励统计
    /// </summary>
    /// <param name="type">in 收入 out支出 </param>
    /// <param name="consumType">见MIbaoConsumeType 枚举</param>
    /// <returns></returns>
   public  MibaoLogEntity   getMyMibaoListByType(String type,int consumType,int start,int pagesize,  ConnectAgent... param)
    {
        MibaoLogEntity o=new MibaoLogEntity();
        o.setConsumeType(consumType);
        o.setType(type);
        o.start=start;
        o.pagesize=pagesize;
        o.setMemo(" ");

        MibaoLogEntity back = (MibaoLogEntity)Remote(param, MibaoLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyMibaoListByType",true,true);
        back.method="getMyMibaoListByType";
        return back;
    }


    /// <summary>
    /// 审核注册
    /// </summary>
    /// <param name="user_id">被审用户id</param>
    /// <param name="status">1通过 2拒绝</param>
    /// <param name="reason">拒绝理由</param>
    /// <param name="auths">逗号分隔的权限id列表</param>
    /// <returns></returns>
    public IAcross AuditRegist(int user_id,int status,String reason,String auths,ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        o.setStatus(status);
        o.setAuditMemo(reason);
        o.setPriKey(auths);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"AuditRegist",true,true);
        back.method="AuditRegist";
        return back;
    }

    /// <summary>
    /// 申请权限
    /// </summary>
    /// <param name="auths">申请的权限id字符串 ，逗号分隔</param>
    /// <returns></returns>
    public IAcross authorityApply( String auths, ConnectAgent... param)
    {
        UserAuthorityApplyEntity o=new UserAuthorityApplyEntity();
        o.setAuthority(auths);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"authorityApply",true,true);
        back.method="authorityApply";
        return back;
    }

    /// <summary>
    ///  审核权限
    /// </summary>
    /// <param name="uaa_id">申请id</param>
    /// <param name="status">1通过 2拒绝</param>
    /// <param name="reason">拒绝理由</param>
    /// <returns></returns>
    public IAcross auditAuthority (int uaa_id,int status,String reason,   ConnectAgent... param)
    {
        UserAuthorityApplyEntity o=new UserAuthorityApplyEntity();
        o.setUaaId(uaa_id);
        o.setStatus(status);
        o.setRefusereason(reason);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"auditAuthority",true,true);
        back.method="auditAuthority";
        return back;
    }


    /// <summary>
    ///  所有权限列表 客户端使用
    /// </summary>
    /// <returns></returns>
    public UserEntity getAllAuthList ( ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setPriKey(" ");
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAllAuthList",true,true);
        back.method="getAllAuthList";
        return back;
    }


    /// <summary>
    ///  用户没有的权限列表
    /// </summary>
    /// <returns></returns>
    public UserEntity getNotAuthList ( ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setPriKey(" ");
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getNotAuthList",true,true);
        back.method="getNotAuthList";
        return back;
    }

    /// <summary>
    /// 待审核权限申请列表
    /// </summary>
    /// <returns></returns>
    public UserAuthorityApplyEntity getAuthorityApplyList(   ConnectAgent... param)
    {
        UserAuthorityApplyEntity o=new UserAuthorityApplyEntity();
        o.setRefusereason(" ");
        UserAuthorityApplyEntity back = (UserAuthorityApplyEntity)Remote(param, UserAuthorityApplyEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAuthorityApplyList",true,true);
        back.method="getAuthorityApplyList";
        return back;
    }


    /// <summary>
    /// 用户基本信息 只包括基本信息
    /// </summary>
    /// <param name="user_id">用户id</param>
    /// <returns></returns>
    public UserEntity getBaseUserInfo( int user_id, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getBaseUserInfo",true,true);
        back.method="getBaseUserInfo";
        return back;
    }

    /// <summary>
    /// 考题列表
    /// </summary>
    /// <param name="type">类别 1.刷手 2商家 3管理 4淘宝客</param>
    /// <returns></returns>
    public ExamEntity getExamList(int type,  ConnectAgent... param)
    {
        ExamEntity o = new ExamEntity();
        o.setType(type);
        ExamEntity back = (ExamEntity)Remote(param, ExamEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getExamList",true,true);
        back.method="getExamList";
        return back;
    }

    /// <summary>
    /// 获得订单详细信息
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public OrderEntity getOrderInfo(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);

        OrderEntity back = (OrderEntity)Remote(param, OrderEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getOrderInfo",true,true);
        back.method="getOrderInfo";
        return back;
    }
    /// <summary>
    /// 考试通过
    /// </summary>
    /// <param name="type">考试类型 1刷手 2 商家 3管理 4 淘宝客</param>
    /// <returns></returns>
    public IAcross passExam(int type,ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setIdentity(type);

        OrderEntity back = (OrderEntity)Remote(param, OrderEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"passExam",true,true);
        back.method="passExam";
        return back;
    }

    /// <summary>
    /// 忘记密码
    /// </summary>
    /// <param name="vcode">验证码</param>
    /// <param name="password">新密码</param>
    /// <returns></returns>
    public IAcross forgetPass( String mobile,String vcode,String password,  ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setMobile(mobile);
        o.setVcode(vcode);
        o.setPassword(password);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"forgetPass",true,true);
        back.method="forgetPass";
        return back;
    }
    /// <summary>
    /// 忘记接单密码
    /// </summary>
    /// <param name="vcode">验证码</param>
    /// <param name="password">新密码</param>
    /// <returns></returns>
    public IAcross forgetWorkPass( String mobile,String vcode,String password,  ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setMobile(mobile);
        o.setVcode(vcode);
        o.setPassword(password);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"forgetWorkPass",true,true);
        back.method="forgetWorkPass";
        return back;
    }



    /// <summary>
    /// 发送回调消息
    /// </summary>
    /// <param name="to_id">接收人</param>
    /// <param name="type">消息类型</param>
    /// <param name="order_id">订单id</param>
    /// <param name="msg">消息内容</param>
    /// <returns></returns>
    public IAcross SendCallback( int to_id,String type,int order_id,String msg,  ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setCreateId(to_id);
        o.setOrderCode(type);
        o.setOrderId(order_id);
        o.setIp(msg);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"SendCallback",true,true);
        back.method="SendCallback";
        return back;
    }

    /// <summary>
    /// 房间管理首页-房间信息
    /// </summary>
    /// <returns>我的身份 userEntity.getIdentitys()</returns>
    /// <returns>房间名 userEntity.getRoomEntity().getRoomName  </returns>
    /// <returns>  房间号 userEntity.getRoomEntity().getNiceAccount 若为空 userEntity.getRoomEntity().getAccount</returns>
    /// <returns>   成员数userEntity.getRoomEntity().getMembers</returns>
    /// <returns>  团队数 userEntity.getRoomEntity().GetGroupNumbers</returns>
    /// <returns>   房主 userEntity.getRoomEntity().getMasterEntity(). </returns>

    public UserEntity getRoomInfo(  ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomName(" ");
        UserEntity back = (UserEntity)Remote(param, UserEntity.class, AccountCtrl.Account_Server_id, "app_server", o, "getRoomInfo", true, true);
        back.method="getRoomInfo";
        return back;
    }


    /// <summary>
    ///  添加团组
    /// </summary>
    /// <param name="prev_id">上级id</param>
    /// <param name="leader">团长or 组长  不选为0</param>
    /// <param name="level">级别 1团 2组 0房间</param>
    /// <param name="name">名称 若为级别为房间写""</param>
    /// <returns></returns>
    public IAcross addGroup ( int prev_id,int leader,int level,String name, ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setPrevId(prev_id);
        o.setLevle(level);
        o.setRoomMaster(leader);
        o.setRoomName(name);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"addGroup",true,true);
        back.method="addGroup";
        return back;
    }

    /// <summary>
    /// 修改团组领导
    /// </summary>
    /// <param name="room_Id">房间id</param>
    /// <param name="leader">团长 组长</param>
    /// <returns></returns>
    public IAcross modRoomLeader( int room_Id, int leader,  ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomId(room_Id);

        o.setRoomMaster(leader);
        IAcross back = (IAcross)Remote(param, IAcross.class, AccountCtrl.Account_Server_id, "app_server", o, "modRoomLeader", true, true);
        back.method="modRoomLeader";
        return back;
    }

    /// <summary>
    ///  删除团组
    /// </summary>
    /// <param name="roomid">上级id</param>
    /// <returns></returns>
    public IAcross delRoom ( int roomid ,  ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomId(roomid);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"delRoom",true,true);
        back.method="delRoom";
        return back;
    }
    /// <summary>
    ///  我关注的房间列表
    /// </summary>
    /// <returns></returns>
    public RoomEntity getFocusRoomList( int start,int pagesize,   ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomName(" ");
        o.start=start;
        o.pagesize=pagesize;
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getFocusRoomList",true,true);
        back.method="getFocusRoomList";
        return back;
    }
    /// <summary>
    ///  关注我的房间列表
    /// </summary>
    /// <returns></returns>
    public RoomEntity getBeFocusRoomList(    ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomName(" ");

        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getBeFocusRoomList",true,true);
        back.method="getBeFocusRoomList";
        return back;
    }

    /// <summary>
    ///  可疑小号列表
    /// </summary>
    /// <returns></returns>
    public DubiousEntity getDubiousList (String key,  ConnectAgent... param)
    {
        DubiousEntity o=new DubiousEntity();
        o.setReason(key);
        o.setCreateId(1);
        DubiousEntity back = (DubiousEntity)Remote(param, DubiousEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getDubiousList",true,true);
        back.method="getDubiousList";
        return back;
    }

    /// <summary>
    ///  我的订单列表 商家端
    /// </summary>
    /// <param name="task_id">任务id</param>
    /// <returns></returns>
    public TaskEntity getMyOrderList(String keyword,int playtype ,int  PayType,int status,int start,int pagesize, ConnectAgent... param)
    {
        TaskEntity o=  new TaskEntity() ;
        o.setRequirement(" ");
        o.setComment(keyword);
         o.setPayType(PayType);
        o.setPlatType(playtype);
        o.setStatus(status);

        o.start=start;
        o.pagesize=pagesize;
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyOrderList",true,true);
        back.method="getMyOrderList";
        return back;
    }

    /// <summary>
    ///  小号二次验证
    /// </summary>
    /// <param name="SmallAccountEntity">小号实体类</param>
    /// <returns></returns>
    public SmallAccountEntity verifyTwice(SmallAccountEntity o, int user_id,ConnectAgent... param)
    {
o.setUserId(user_id);

        SmallAccountEntity back = (SmallAccountEntity)Remote(param, SmallAccountEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"verifyTwice",true,true);
        back.method="verifyTwice";
        return back;
    }

    /// <summary>
    ///   小号白名单列表
    /// </summary>
    /// <returns></returns>
    public TrustSmEntity getTrustList (String key,  ConnectAgent... param)
    {
        TrustSmEntity o=new TrustSmEntity();
        o.setReason(key);
        o.setCreateId(1);
        TrustSmEntity back = (TrustSmEntity)Remote(param, TrustSmEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getTrustList",true,true);
        back.method="getTrustList";
        return back;
    }

    /// <summary>
    ///   列为可疑小号
    /// </summary>
    /// <param name="tsmId">白名单主键id</param>
    /// <param name="reason">原因</param>
    /// <returns></returns>
    public IAcross moveToDebious(int tsmId,String reason,    ConnectAgent... param)
    {
        TrustSmEntity o=new TrustSmEntity();
        o.setTsmId(tsmId);
        o.setReason(reason);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"moveToDebious",true,true);
        back.method="moveToDebious";
        return back;
    }

    /// <summary>
    ///   加入白名单
    /// </summary>
    /// <param name="dId">黑名单主键id</param>
    /// <param name="reason">原因</param>
    /// <returns></returns>
    public IAcross moveToTrust(int dId,String reason,    ConnectAgent... param)
    {
        DubiousEntity o=new DubiousEntity();
        o.setdId(dId);
        o.setReason(reason);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"moveToTrust",true,true);
        back.method="moveToTrust";
        return back;
    }

    /// <summary>
    ///  下级管理列表
    /// </summary>
    /// <returns></returns>
    public UserEntity getSubManageList( ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setNickname(" ");
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getSubManageList",true,true);
        back.method="getSubManageList";
        return back;
    }
    /// <summary>
    ///  管理日志
    /// </summary>
    /// <param name="keyword">搜索关键字</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <param name="user_Id">管理员id</param>
    /// <returns></returns>
    public OperLogEntity getOperLogList(String keyword, String startdate,String enddate,int user_Id,int start,int pagesize,ConnectAgent... param)
    {
        OperLogEntity o=new OperLogEntity();
        o.setAction(keyword);
        o.setCreateId(user_Id);
        o.setStartDate(startdate);
        o.setEndDate(enddate);
o.start=start;o.pagesize=pagesize;
        OperLogEntity back = (OperLogEntity)Remote(param, OperLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getOperLogList",true,true);
        back.method="getOperLogList";
        return back;
    }


    /// <summary>
    ///   黑名单列表
    /// </summary>
    /// <returns></returns>
    public BlacklistEntity getBlacklist (int start,int pagesize,   ConnectAgent... param)
    {
        BlacklistEntity o=new BlacklistEntity();
        o.start=start;
        o.pagesize=pagesize;
        o.setReason(" ");
        BlacklistEntity back = (BlacklistEntity)Remote(param, BlacklistEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getBlacklist",true,true);
        back.method="getBlacklist";
        return back;
    }


    /// <summary>
    ///   加入黑名单
    /// </summary>
    /// <param name="user_Id">用户id</param>
    /// <param name="reason">原因</param>
    /// <returns></returns>
    public IAcross moveToBlack(int user_Id,String reason,  ConnectAgent... param)
    {
        BlacklistEntity o=new BlacklistEntity();
         o.setUserId(user_Id);
        o.setReason(reason);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"moveToBlack",true,true);
        back.method="moveToBlack";
        return back;
    }

    /// <summary>
    ///   移出黑名单
    /// </summary>
    /// <param name="user_Id">用户id</param>
    /// <param name="reason">原因</param>
    /// <returns></returns>
    public IAcross moveFromBlack(int user_Id,String reason,  ConnectAgent... param)
    {
        BlacklistEntity o=new BlacklistEntity();
        o.setUserId(user_Id);
        o.setReason(reason);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"moveFromBlack",true,true);
        back.method="moveFromBlack";
        return back;
    }

    /// <summary>
    ///   取消所有权限
    /// </summary>
    /// <param name="user_Id">用户id</param>
    /// <param name="reason">原因</param>
    /// <returns></returns>
    public IAcross cancelAllauthority(int user_Id, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_Id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"cancelAllauthority",true,true);
        back.method="cancelAllauthority";
        return back;
    }

    /// <summary>
    /// 修改房间名称
    /// </summary>
    /// <param name="room_Id">房间id</param>
    /// <param name="newname">新名称</param>
    /// <returns></returns>
    public IAcross modRoomName( int room_Id,String newname,  ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomId(room_Id);
        o.setRoomName(newname);
        IAcross back = (IAcross)Remote(param, IAcross.class, AccountCtrl.Account_Server_id, "app_server", o, "modRoomName", true, true);
        back.method="modRoomName";
        return back;
    }
    /// <summary>
    ///   修改房间名片
    /// </summary>
    /// <returns></returns>
    public IAcross renameMyCard( String name, ConnectAgent... param)
    {
        UserRoomEntity o=new UserRoomEntity();
        o.setReName(name);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"renameMyCard",true,true);
        back.method="renameMyCard";
        return back;
    }
    /// <summary>
    ///  为下属会员修改房间名片
    /// </summary>
    /// <returns></returns>
    public IAcross renameRoomCard(int user_id, String name, ConnectAgent... param)
    {
        UserRoomEntity o=new UserRoomEntity();
        o.setReName(name);
        o.setUserId(user_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"renameRoomCard",true,true);
        back.method="renameRoomCard";
        return back;
    }
    /// <summary>
    ///  取消会员管理身份
    /// </summary>
    /// <returns></returns>
    public IAcross removeUerManager(int user_id,   ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"removeUerManager",true,true);
        back.method="removeUerManager";
        return back;
    }

    /// <summary>
    ///  修改会员团组归属
    /// </summary>
    /// <param name="room_Id">新团组id</param>
    /// <returns></returns>
    public IAcross moveUserRoom(int user_id,int room_Id,   ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        o.setRoomId(room_Id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"moveUserRoom",true,true);
        back.method="moveUserRoom";
        return back;
    }
    /// <summary>
    ///   获得某房间团组下所有用户列表
    /// </summary>
    /// <param name="partion">part 直属下属  all全部下下属</param>
    /// <param name="room_Id">团组id</param>
    /// <param name="keyword">搜索关键字</param>
    /// <param name="identity">全部0 刷手1 商家2  管理3</param>
    /// <returns></returns>
    public UserEntity getRoomUserList(String partion, int room_Id,String keyword,int identity,int start,int pagesize, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setCity(partion);
        o.setRoomId(room_Id);
        o.setVcode(keyword);
        o.setIdentity(identity);
        o.start=start;o.pagesize=pagesize;
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getRoomUserList",true,true);
        back.method="getRoomUserList";
        return back;
    }

    /// <summary>
    ///  设为房间副管理
    /// </summary>
    /// <param name="user_id">被设用户id</param>
    /// <returns></returns>
    public IAcross setAssistant(int user_id,  ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"setAssistant",true,true);
        back.method="setAssistant";
        return back;
    }

    /// <summary>
    ///  设置用户权限
    /// </summary>
    /// <param name="user_id">被设用户id</param>
    /// <param name="auths">权限id列表,逗号分隔</param>
    /// <returns></returns>
    public IAcross setUserAuthority(int user_id,String auths , ConnectAgent... param)
    {
        UserAuthorityEntity o=new UserAuthorityEntity();
        o.setAuths(auths);
        o.setUserId(user_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"setUserAuthority",true,true);
        back.method="setUserAuthority";
        return back;
    }
    /// <summary>
    ///  用户已有权限
    /// </summary>
    /// <returns></returns>
    public UserEntity getUserAuthList(int user_id,ConnectAgent... param)
    {
        UserAuthorityEntity o=new UserAuthorityEntity();
        o.setUserId(user_id);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getUserAuthList",true,true);
        back.method="getUserAuthList";
        return back;
    }

    /// <summary>
    ///  用户可设置权限
    /// </summary>
    /// <returns></returns>
    public UserEntity getUserCanAuthList(int user_id,ConnectAgent... param)
    {
        UserAuthorityEntity o=new UserAuthorityEntity();
        o.setUserId(user_id);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getUserCanAuthList",true,true);
        back.method="getUserCanAuthList";
        return back;
    }

    /// <summary>
    /// 考试 考一题提交一次(答对的前提下)
    //   </summary>
    /// <param name="exam_id">考题id</param>
    /// <param name="type">考试类型 1刷手 2 商家 3管理 4 淘宝客</param>
    /// <returns></returns>
    public IAcross doExam(int exam_id, int type,ConnectAgent... param)
    {
        UserExamProgressEntity o=new UserExamProgressEntity();
        o.setIdentity(type);
        o.setExamId(exam_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"doExam",true,true);
        back.method="doExam";
        return back;
    }

    /// <summary>
    /// 被拒绝的情况下 重新申请注册
    //   </summary>
    /// <returns></returns>
    public UserEntity reRegist(ConnectAgent... param )
    {
        UserEntity o=new UserEntity();
        o.setVcode(" ");
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"reRegist",true,true);
        back.method="reRegist";

        return back;
    }

    /// <summary>
    ///  任务置顶
    /// </summary>
    /// <param name="task_id">任务id</param>
    /// <returns></returns>
    public IAcross setTaskTop(int task_id,  ConnectAgent... param)
    {
        TaskEntity o=new TaskEntity();
        o.settId(task_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"setTaskTop",true,true);
        back.method="setTaskTop";
        return back;
    }
    /// <summary>
    /// 银行列表
    //   </summary>
    /// <returns></returns>
    public BankEntity getBankList(ConnectAgent... param )
    {
        BankEntity o=new BankEntity();
        o.setName(" ");
        BankEntity back = (BankEntity)Remote(param, BankEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getBankList",true,true);
        back.method="getBankList";

        return back;
    }

    /// <summary>
    ///  我可设置权限
    /// </summary>
    /// <returns></returns>
    public UserEntity getMyCanAuthList(ConnectAgent... param)
    {
        UserAuthorityEntity o=new UserAuthorityEntity();
        o.setAuths(" ");
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyCanAuthList",true,true);
        back.method="getMyCanAuthList";
        return back;
    }


    /// <summary>
    ///  我的邀请码列表 用于统计 status=0未使用 1已使用 全部传-1
    /// </summary>
    /// <returns></returns>
    public InvitationCodeEntity getBaseInvitationCodeList(int status, ConnectAgent... param)
    {
        InvitationCodeEntity o=new InvitationCodeEntity();
        o.setStatus(status);
        o.setCode(" ");
        InvitationCodeEntity back = (InvitationCodeEntity)Remote(param, InvitationCodeEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getBaseInvitationCodeList",true,true);
        back.method="getBaseInvitationCodeList";
        return back;
    }






    /// <summary>
    /// 获得下级房间列表
    /// </summary>
    /// <param name="roomid">房间id</param>
    /// <returns></returns>
    public RoomEntity getMyAllSubroomList(int start,int pagesize,  ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomName(" ");
        o.start=start;
        o.pagesize=pagesize;
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyAllSubroomList",true,true);
        back.method="getMyAllSubroomList";
        return back;
    }



    //支付宝异步返回处理
    public  IAplipay checkResult( String jsontext, ConnectAgent... param)
    {
        IAplipay obj= new IAplipay();
        obj.otherparams=jsontext;
        IAplipay jc = (IAplipay)Remote(param, IAplipay.class,AccountCtrl.Account_Server_id,"app_server",    obj,"checkResult",true,true);

        return jc;
    }

    /// <summary>
    ///  充值
    /// </summary>
    //  <param name="moneyamount">支付金额</param>
    //  <param name="amout">到账金额金额</param>
    //  <param name="serviceCharge">手续费</param>
    /// <param name="environment">环境 pc端1 ，手机端 2</param>
    /// <param name="type">保证金b  金米j</param>
    /// <param name="re_type">充值方式   支付宝:ali 招商银行:zs</param>
    /// <returns></returns>
    public  IAplipay  rechare(BigDecimal moneyamount,BigDecimal amout,BigDecimal serviceCharge,int environment,String type,String re_type,  ConnectAgent... param)
    {
        JinmiLogEntity o=new JinmiLogEntity();
        o.setMoneyamount(moneyamount);
        o.setAmount(amout);
        o.setServiceCharge(serviceCharge);
        o.setType(type);
        o.setConsumeTypeCn(re_type);
        o.setStatus(environment);
        IAplipay jc = (IAplipay)Remote(param, IAplipay.class,AccountCtrl.Account_Server_id,"app_server",      o,"rechare",true,true);
        jc.method="rechare";
        return jc;
    }
    /// <summary>
    /// 修改绑定手机
    /// </summary>
    /// <param name="vcode">验证码</param>
    /// <returns></returns>
    public IAcross modMobile( String oldmobile,String oldvcode,String newMobile, String newvcode,  ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setIdentitys(oldmobile);
        o.setAccount(oldvcode);
        o.setMobile(newMobile);
        o.setVcode(newvcode);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"modMobile",true,true);
        back.method="modMobile";
        return back;
    }

    /// <summary>
    /// 绑定银行卡
    /// </summary>
    /// <param name="bank">银行</param>
    /// <param name="mobile">银行预留手机号</param>
    /// <param name="card">卡号</param>
    /// <returns></returns>
    public BankCardEntity bindBankCard(String province,String city, String bank,String mobile,String card,String vcode,  ConnectAgent... param)
    {
        BankCardEntity o=new BankCardEntity();
        o.setCardNo(card);
        o.setType(bank);
        o.setMobile(mobile);
        o.setProvince(province);
        o.setCity(city);
        BankCardEntity back = (BankCardEntity)Remote(param, BankCardEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"bindBankCard",true,true);
        back.method="bindBankCard";
        return back;
    }

    /// <summary>
    /// 实名认证后调用
    /// </summary>
    /// <param name="realname">姓名</param>
    /// <param name="idnumber">身份证号</param>
    /// <param name="birthday">生日</param>
    /// <param name="sex">性别</param>
    /// <param name="nation">民族</param>
    /// <param name="address">地址</param>
    /// <param name="organization">身份证签发机关</param>
    /// <param name="valid_date_start">有效期起</param>
    /// <param name="valid_date_end">有效期截止</param>
    /// <returns></returns>
    public UserEntity  certAfter(String realname,String idnumber,String birthday, int sex,String nation,String address,String organization,String valid_date_start,String valid_date_end,    ConnectAgent... param)
    {
        UserEntity o=new UserEntity( idnumber, realname,  valid_date_end,  valid_date_start,  organization,  address,  nation,  sex,  birthday);

        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"certAfter",true,true);
        back.method="certAfter";
        return back;
    }



    /// <summary>
    ///  房间仲裁数据统计
    /// </summary>
    /// <returns></returns>
    public Aribitrate getRoomArbirateData(int room_id,  ConnectAgent... param)
    {
        ArbitrateEntity o=new ArbitrateEntity();
        o.setaId(room_id);
        o.setMemo(" ");
        Aribitrate back = (Aribitrate)Remote(param, Aribitrate.class,AccountCtrl.Account_Server_id,"app_server",o,"getRoomArbirateData",true,true);
        back.method="getRoomArbirateData";
        return back;
    }

    /// <summary>
    ///  查询芝麻认证结果
    /// </summary>
    /// <returns></returns>
    public IAcross searchZHIMA(String bizno, ConnectAgent... param)
    {
        ZhimaCert o=new ZhimaCert();
        o.biz_no=bizno;
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"searchZHIMA",true,true);
        back.method="searchZHIMA";
        return back;
    }

    /// <summary>
    ///  提现申请
    /// </summary>
    /// <param name="bc_id">银行卡id</param>
    /// <param name="amount">金额</param>
    /// <param name="type">b保证金 j金米</param>
    /// <returns></returns>
    public IAcross getCashApply(int bc_id,int amount,String type, ConnectAgent... param)
    {
        GetcashEntity o=new GetcashEntity();
        o.setBcId(bc_id);
        o.setAmount(new BigDecimal(amount));
        o.setType(type);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"getCashApply",true,true);
        back.method="getCashApply";
        return back;
    }

    /// <summary>
    ///  我的邀请码列表 用于显示
    /// </summary>
    //  <param name="keyword">关键字</param>
    //  <param name="iscert">是否实名认证</param>
    /// <param name="isaudit">是否审核通过</param>
    /// <returns></returns>
    public InvitationCodeEntity getInvitationCodeList(String keyword, int iscert,int isaudit,String startdate,String enddate,  int status,int start,int pagesize, ConnectAgent... param)
    {
        UserEntity u=new UserEntity();
        u.setIscert(iscert);
        u.setStatus(isaudit);
        u.setNickname(keyword);
        InvitationCodeEntity o=new InvitationCodeEntity();
        o.setUserEntity(u);
        o.setStatus(status);
        o.start=start;
        o.pagesize=pagesize;
        o.setCode(startdate);
        o.setMemo(enddate);
        InvitationCodeEntity back = (InvitationCodeEntity)Remote(param, InvitationCodeEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getInvitationCodeList",true,true);
        back.method="getInvitationCodeList";
        return back;
    }

    /// <summary>
    /// 房间基本信息
    /// </summary>
    /// <param name="room_Id">房间id</param>
    /// <returns></returns>
    public RoomEntity getBaeeRoomInfo(int room_Id,  ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomId(room_Id);
        o.setRoomName(" ");
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class, AccountCtrl.Account_Server_id, "app_server", o, "getBaeeRoomInfo", true, true);
        back.method="getBaeeRoomInfo";
        return back;
    }

    /// <summary>
    /// 保证金充值
    /// </summary>
    /// <param name="amount">金额</param>
    /// <returns></returns>
    public DepositLogEntity rechargeDeposit( Integer user_id, BigDecimal amount,BigDecimal moneyamount, BigDecimal serviceCharge,ConnectAgent... param)
    {
        DepositLogEntity o=new DepositLogEntity();
        o.setUserId(user_id);
        o.setAmount(amount);
        o.setMoneyamount(moneyamount);
        o.setServiceCharge(serviceCharge);
        o.setType("in");
        o.setConsumeType(1);
        DepositLogEntity back = (DepositLogEntity)Remote(param, DepositLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"recharge",true,true);
        back.method="rechargeDeposit";
        return back;
    }
    /// <summary>
    /// 保证金提现
    /// </summary>
    /// <param name="amount">金额</param>
    /// <returns></returns>
    public DepositLogEntity getCashDeposit(Integer user_id, BigDecimal amount,ConnectAgent... param)
    {
        DepositLogEntity o=new DepositLogEntity();
        o.setUserId(user_id);
        o.setAmount(amount.multiply(new BigDecimal(-1)));
        o.setMoneyamount(amount.multiply(new BigDecimal(-1)));
        o.setType("out");
        o.setConsumeType(2);
        DepositLogEntity back = (DepositLogEntity)Remote(param, DepositLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"cash",true,true);
        back.method="getCashDeposit";
        return back;
    }



    /// <summary>
    ///  修改邀请码备注
    /// </summary>
    /// <param name="id">主键id</param>
    /// <param name="memo">备注</param>
    /// <returns></returns>
    public IAcross modInvatation(int id,String memo, ConnectAgent... param)
    {
        InvitationCodeEntity o=new InvitationCodeEntity();
        o.setIcId(id);
        o.setMemo(memo);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"modInvatation",true,true);
        back.method="modInvatation";
        return back;
    }


    /// <summary>
    /// 保证金记录
    /// </summary>
    /// <returns></returns>
    public DepositLogEntity getMyDepositlist( int start,int pagesize, ConnectAgent... param)
    {
        DepositLogEntity o=new DepositLogEntity();
        o.setMemo(" ");
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        DepositLogEntity back = (DepositLogEntity)Remote(param, DepositLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyDepositlist",true,true);
        back.method="getMyDepositlist";
        return back;
    }

    /// <summary>
    /// 金米记录
    /// </summary>
    /// <param name="consumTypes">消费类别字符串 (如1,2,3)</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <param name="type">1正常记录 2 冻结记录（必传项,不能传0及以下）</param>
    /// <returns></returns>
    public JinmiLogEntity getMyJinmilist(int type, String consumTypes,String startdate,String enddate, int start,int pagesize, ConnectAgent... param)
    {
        JinmiLogEntity o=new JinmiLogEntity();
        o.setId(type);
        o.setMemo(consumTypes);
        o.setStartDate(startdate);
        o.setEndDate(enddate);
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        JinmiLogEntity back = (JinmiLogEntity)Remote(param, JinmiLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyJinmilist",true,true);
        back.method="getMyJinmilist";
        return back;
    }


    /// <summary>
    /// 验证验证码 type见枚举VerifyType
    /// </summary>
    /// <param name="mobile">手机号</param>
    /// <param name="type">验证码类型</param>
    /// <param name="vcode">验证码</param>
    /// <returns></returns>
    public IAcross verifyVCode ( String mobile, String type,String vcode, ConnectAgent... param )
    {
        VerifyCodeEntity o=new VerifyCodeEntity(   mobile, type );
        o.setVvcode(vcode);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"verifyVCode",true,true);
        back.method="verifyVCode";
        return back;
    }


    /// <summary>
    ///  个人中心任务统计
    /// </summary>
    /// <returns></returns>
    public OrderData getOrderData(  ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setIp(" ");
        OrderData back = (OrderData)Remote(param, OrderData.class,AccountCtrl.Account_Server_id,"app_server",o,"getOrderData",true,true);
        back.method="getOrderData";
        return back;
    }



    /// <summary>
    ///  添加房间 平台管理员用
    /// </summary>
    /// <param name="code">账号</param>
    /// <param name="group_id">组id</param>
    /// <param name="auths">权限id 逗号分隔</param>
    /// <param name="name">名称 若为级别为房间写""</param>
    /// <returns></returns>
    public IAcross addRoom ( String code,String group_id, String jd_group_id, String agent_account, String auths, String memo, ConnectAgent... param)
    {
        RoomEntity o=new RoomEntity();
        o.setRoomCode(code);
        o.setGroupId(group_id);
        o.setOthers(auths);
        o.setJdGroupId(jd_group_id);
        o.setAgentAccount(agent_account);
        o.setMemo(memo);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"addRoom",true,true);
        back.method="addRoom";
        return back;
    }



    /// <summary>
    /// 设置重新考试
    //   </summary>
    /// <param name="user_id">考题id</param>
    /// <param name="type">考试类型 1刷手 2 商家 3管理 4 淘宝客</param>
    /// <returns></returns>
    public IAcross setReExam(int user_id, int type,ConnectAgent... param)
    {
        UserExamProgressEntity o=new UserExamProgressEntity();
        o.setIdentity(type);
        o.setUserId(user_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"setReExam",true,true);
        back.method="setReExam";
        return back;
    }


    /// <summary>
    /// 批量转移团队内成员
    //   </summary>
    /// <param name="from_id">原团组id</param>
    /// <param name="to_id">目标团组id</param>
    /// <returns></returns>
    public IAcross transRoomUsers(int from_id, int to_id,ConnectAgent... param)
    {
        UserRoomEntity o=new UserRoomEntity();
        o.setRoomId(to_id);
        o.setUserId(from_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"transRoomUsers",true,true);
        back.method="transRoomUsers";
        return back;
    }

//计算发单钱数
    public TaskEntity countTaskMondy (TaskEntity task ,ConnectAgent... param)
    {
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",task,"countTaskMondy",true,true);
        back.method="countTaskMondy";
        return back;
    }


    /// <summary>
    ///  团队放单接单排名
    /// </summary>
    /// <param name="type">1放单 2接单</param>
    /// <returns>列表 roomEntity.getRoomList()</returns>
    /// <returns>放单数量 roomEntity.getRoomList().getMembers</returns>
    public RoomEntity getRoomOrderranking(int type, String startdate,String enddate, ConnectAgent... param) throws Exception
    {
        OrderEntity o=new OrderEntity();
        o.settId(type);
        o.setIp(startdate);
        o.setOrderCode(enddate);
        o.setValid(-1);
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class, AccountCtrl.Account_Server_id, "app_server", o, "getRoomOrderranking", true, true);
        back.method="getRoomOrderranking";
        return back;
    }

    /// <summary>
    /// 个人放单接单排名
    /// </summary>
    /// <param name="type">1放单 2接单</param>
    /// <returns>列表 UserEntity.getUserList()</returns>
    /// <returns> 数量 userEntity.getPromotd()</returns>
    public UserEntity getPersonOrderranking(int type, String startdate,String enddate,ConnectAgent... param) throws Exception
    {
        OrderEntity o=new OrderEntity();
        o.settId(type);
        o.setIp(startdate);
        o.setOrderCode(enddate);
        o.setValid(-1);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class, AccountCtrl.Account_Server_id, "app_server", o, "getPersonOrderranking", true, true);
        back.method="getPersonOrderranking";
        return back;
    }

    /// <summary>
    ///  房间任务统计
    /// </summary>
    /// <returns></returns>
    public OrderData getRoomOrderData( ConnectAgent... param)
    {  OrderEntity o=new OrderEntity();       ;
        o.setValid(-1);
        OrderData back = (OrderData)Remote(param, OrderData.class,AccountCtrl.Account_Server_id,"app_server",o,"getRoomOrderData",true,true);
        back.method="getRoomOrderData";
        return back;
    }

    /// <summary>
    ///  取所有后台权限
    /// </summary>
    /// <returns></returns>
    public AuthorityEntity getBackstageAuths(ConnectAgent... param)
    {
        AuthorityEntity icall = new AuthorityEntity();
        icall.setCode(" ");
        AuthorityEntity back = (AuthorityEntity)Remote(param, AuthorityEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"getBackstageAuths",true,true);
        back.method="getBackstage";
        return back;
    }
    /// <summary>
    ///  我推广的订单列表
    /// </summary>
    /// <param name="status">订单状态 逗号分隔  收菜完成3</param>
    /// <returns></returns>
    public OrderEntity getMyPromotOrderList(String status, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderCode(status);
        o.setOrderCodeOuter(" ");

        OrderEntity back = (OrderEntity)Remote(param, OrderEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMyPromotOrderList",true,true);
        back.method="getMyPromotOrderList";
        return back;
    }

    /// <summary>
    ///  通过账号 手机号 昵称 查询用户
    /// </summary>
    /// <returns></returns>
    public UserEntity getUserLists(String account, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setAccount(account);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getUserLists",true,true);
        back.method="getUserLists";
        return back;
    }
    /// <summary>
    ///  取我的所有房间列表
    /// </summary>
    /// <returns></returns>
    public RoomEntity getAllMyRoomList(ConnectAgent... param)
    {
        RoomEntity icall = new RoomEntity();
        icall.setRoomCode(" ");
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"getAllMyRoomList",true,true);
        back.method="getAllMyRoomList";
        return back;
    }
    /// <summary>
    ///  取我的所有房间列表Ex
    /// </summary>
    /// <returns></returns>
    public RoomEntity getAllMyRoomExtList(ConnectAgent... param)
    {
        RoomEntity icall = new RoomEntity();
        icall.setRoomCode(" ");
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"getAllMyRoomExtList",true,true);
        back.method="getAllMyRoomExtList";
        return back;
    }
    /// <summary>
    ///  修改房间信息
    /// </summary>
    /// <returns></returns>
    public RoomEntity updateRoom(int room_id, String room_code, String group_id, String jd_group_id, String agent_account, int room_lock_lvl, String auths, String memo, ConnectAgent... param)
    {
        RoomEntity icall = new RoomEntity();
        icall.setRoomId(room_id);
        icall.setRoomCode(room_code);
        icall.setGroupId(group_id);
        icall.setJdGroupId(jd_group_id);
        icall.setAgentAccount(agent_account);
        icall.setOthers(auths);
        icall.setRoomLockLvl(room_lock_lvl);
        icall.setMemo(memo);
        RoomEntity back = (RoomEntity)Remote(param, RoomEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"updateRoom",true,true);
        back.method="updateRoom";
        return back;
    }

    /// <summary>
    ///  设定人员杂项状态
    /// </summary>
    /// <returns></returns>
    public IAcross setUserOther(int user_id, int loginable, int blacklvl, String agent_account, String mobile, String qq, ConnectAgent... param)
    {
        UserEntity icall = new UserEntity();
        icall.setLoginable(loginable);
        icall.setIsblack(blacklvl);
        icall.agentAccount = agent_account;
        icall.setMobile(mobile);
        icall.setQq(qq);
        IAcross back = Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",icall,"setUserOther",true,true);
        back.method="setUserOther";
        return back;
    }

    /// <summary>
    ///  处罚奖励
    /// </summary>
    /// <returns></returns>
    public IAcross CForJL(int user_id, int choice, BigDecimal amount, int type, String memo, ConnectAgent... param)
    {
        IAcross back = null;

        if ( type == 0 )
        {
            JinmiLogEntity icall = new JinmiLogEntity();

            icall.setConsumeType(choice == 0 ? 11 : 10);
            icall.setType(choice == 0 ? "in" : "out");
            icall.setAmount(amount);
            icall.setUserId(user_id);
            icall.setMemo(memo);
            back = Remote(param, IAcross.class, AccountCtrl.Account_Server_id, "app_server", icall, "CForJL", true, true);
        }else if ( type == 1 )
        {
            MibaoLogEntity icall = new MibaoLogEntity();

            icall.setConsumeType(choice == 0 ? 7 : 6);
            icall.setType(choice == 0 ? "in" : "out");
            icall.setAmount(amount.toBigInteger().intValue());
            icall.setUserId(user_id);
            icall.setMemo(memo);
            back = Remote(param, IAcross.class, AccountCtrl.Account_Server_id, "app_server", icall, "CForJL", true, true);
        }else if ( type == 2 )
        {
            DepositLogEntity icall = new DepositLogEntity();

            icall.setConsumeType(choice == 0 ? 4 : 3);
            icall.setType(choice == 0 ? "in" : "out");
            icall.setAmount(amount);
            icall.setUserId(user_id);
            icall.setMemo(memo);
            back = Remote(param, IAcross.class, AccountCtrl.Account_Server_id, "app_server", icall, "CForJL", true, true);
        }
        back.method="CForJL";
        return back;
    }

    /// <summary>
    ///  提现导出
    /// </summary>
    /// <returns></returns>
    public GetcashEntity getCashExportList(String edate,String type, ConnectAgent... param)
    {
        GetcashEntity icall = new GetcashEntity();

        icall.setType(type);
        icall.setExportDate(Timestamp.valueOf(edate));
        GetcashEntity back = (GetcashEntity)Remote(param, GetcashEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"getCashExportList",true,true);
        back.method="getCashExportList";
        return back;
    }

    /// <summary>
    ///  提现导入
    /// </summary>
    /// <returns></returns>
    public GetcashEntity getCashImportList(List<GetcashEntity> gelist, String edate,String type, ConnectAgent... param)
    {
        GetcashEntity icall = new GetcashEntity();

        icall.gelist = gelist;
        icall.setExportDate(Timestamp.valueOf(edate));
        icall.setType(type);
        GetcashEntity back = (GetcashEntity)Remote(param, GetcashEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"getCashImportList",true,true);
        back.method="getCashImportList";
        return back;
    }

    /// <summary>
    ///  提现成功导入
    /// </summary>
    /// <returns></returns>
    public GetcashEntity getCashImportSucList(List<GetcashEntity> gelist, String edate,String type, ConnectAgent... param)
    {
        GetcashEntity icall = new GetcashEntity();

        icall.gelist = gelist;
        icall.setExportDate(Timestamp.valueOf(edate));
        icall.setType(type);
        GetcashEntity back = (GetcashEntity)Remote(param, GetcashEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"getCashImportSucList",true,true);
        back.method="getCashImportSucList";
        return back;
    }

    /// <summary>
    /// 直属在线上级用户
    /// </summary>
    /// <returns></returns>
    public UserEntity getOnlinePrevUser(int user_id,ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getOnlinePrevUser",true,true);
        back.method="getOnlinePrevUser";
        return back;
    }
    /// <summary>
    /// 审核解冻
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <param name="result">1 同意 2 拒绝</param>
    /// <returns></returns>
    public IAcross auditIceoutApply(int order_id,int result, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setStatus(result);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"auditIceoutApply",true,true);
        back.method="auditIceoutApply";
        return back;
    }
    /// <summary>
    /// 删除任务模板
    /// </summary>
    /// <param name="tmids">模板id串，逗号分隔</param>
    /// <returns></returns>
    public IAcross delTaskModule(String tmids, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity();
        o.setComment(tmids);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"delTaskModule",true,true);
        back.method="delTaskModule";
        return back;
    }

    /// <summary>
    /// 审核做单完成
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <param name="status">1同意 2拒绝</param>
    /// <returns></returns>
    public IAcross auditOverOrderSS(int order_id,int status,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setStatus(status);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"auditOverOrderSS",true,true);
        back.method="auditOverOrderSS";
        return back;
    }
    /// <summary>
    /// 审核收菜完成
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <param name="status">1同意 2拒绝</param>
    /// <returns></returns>
    public IAcross auditAllOverOrderSS(int order_id,int status,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setStatus(status);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"auditAllOverOrderSS",true,true);
        back.method="auditAllOverOrderSS";
        return back;
    }

    /// <summary>
    /// 金米记录
    /// </summary>
    /// <param name="consumTypes">消费类别字符串 (如1,2,3)</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <param name="type">1正常记录 2 冻结记录（必传项,不能传0及以下）</param>
    /// <returns></returns>
    public JinmiLogEntity getJinmilist(int user_id, int type, String consumTypes,String startdate,String enddate, int start,int pagesize, ConnectAgent... param)
    {
        JinmiLogEntity o=new JinmiLogEntity();
        o.setUserId(user_id);
        o.setId(type);
        o.setMemo(consumTypes);
        o.setStartDate(startdate);
        o.setEndDate(enddate);
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        JinmiLogEntity back = (JinmiLogEntity)Remote(param, JinmiLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getJinmilist",true,true);
        back.method="getJinmilist";
        return back;
    }
    /// <summary>
    /// 米宝记录
    /// </summary>
    /// <returns></returns>
    public MibaoLogEntity getMibaoList(int user_id, int start,int pagesize, ConnectAgent... param)
    {
        MibaoLogEntity o=new MibaoLogEntity();
        o.setUserId(user_id);
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        MibaoLogEntity back = (MibaoLogEntity)Remote(param, MibaoLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMibaoList",true,true);
        back.method="getMibaoList";
        return back;
    }
    /// <summary>
    /// 保证金记录
    /// </summary>
    /// <returns></returns>
    public DepositLogEntity getDepositlist(int user_id, int start,int pagesize, ConnectAgent... param)
    {
        DepositLogEntity o=new DepositLogEntity();
        o.setUserId(user_id);
        o.setMemo(" ");
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        DepositLogEntity back = (DepositLogEntity)Remote(param, DepositLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getDepositlist",true,true);
        back.method="getDepositlist";
        return back;
    }
    /// <summary>
    /// 用户任务列表
    /// </summary>
    /// <returns></returns>
    public TaskEntity getTaskList(int user_id, int taskstatus,int paytype,int plattype,  int start,int pagesize, ConnectAgent... param)
    {
        TaskEntity o=new TaskEntity(taskstatus,paytype,plattype, start,pagesize);
        o.user_id = user_id;
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getUserTaskList",true,true);
        back.method="getUserTaskList";
        return back;
    }
    /// <summary>
    /// 刷手订单列表 刷手端
    /// </summary>
    /// <param name="status">订单状态</param>
    /// <returns></returns>
    public TaskEntity getOrdderlist(int user_id, Integer status,int start,int pagesize, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.user_id = user_id;
        o.setStatus(status);
        o.setOrderCode(" ");
        o.start=start;
        o.pagesize=pagesize;
        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getOrdderlist",true,true);
        back.method="getOrdderlist";
        return back;
    }

    /// <summary>
    /// 修改淘宝订单号
    /// </summary>
    /// <returns></returns>
    public IAcross modOutOrderCode(int order_Id, String outcode, ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderCodeOuter(outcode);
o.setOrderId(order_Id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"modOutOrderCode",true,true);
        back.method="modOutOrderCode";
        return back;
    }

    /// <summary>
    /// 退出登录
    /// </summary>
    /// <returns></returns>
    public   IAcross Logout( ConnectAgent... param)
    {
        UserEntity   log=new    UserEntity();
        log.setIdentity(1);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",log,"Logout",true,true);
        back.method="Logout";

        return back;
    }
    /// <summary>
    /// 最新版本
    /// </summary>
    /// <returns></returns>
    public IAppVersion GetLastVersion ( String app_code, int major_ver, int minor_ver, int revision_ver, int build , ConnectAgent... param)
    {
        IAppVersion jc = (IAppVersion)Remote(param, IAppVersion.class,AccountCtrl.Account_Server_id,"app_server",  new IAppVersion( "confirm", app_code, major_ver, minor_ver, revision_ver, build),"GetLastVersion",true,true);
        jc.method="GetLastVersion";
        return jc;

    }

    /// <summary>
    /// 申请关注
    /// </summary>
    /// <param name="targetroom_id">目标房间</param>
    /// <param name="type">1关注 0取消关注</param>
    /// <returns></returns>
    public   IAcross roomFocusApply( int targetroom_id, int type, ConnectAgent... param)
    {
        RoomFocusAuditEntity   o=new    RoomFocusAuditEntity();
        o.setTargetId(targetroom_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"roomFocusApply",true,true);
        back.method="roomFocusApply";
        return back;
    }

    /// <summary>
    ///  消息列表
    /// </summary>
    /// <param name="type">消息类型  系统消息sys   p2p点对点消息 person个人消息</param>
    /// <param name="isread">已读标志  1是 0否 -1全部</param>
    /// <returns></returns>
    public MessageEntity getMyMessageList ( String  type, int isread,int start,int pagesize, ConnectAgent... param)
    {
        MessageEntity o=new MessageEntity();
        o.setType(type);
        o.setIsread(isread);
        o.setContent(" ");
        o.start=start;
        o.pagesize=o.pagesize;
        MessageEntity back = (MessageEntity)Remote(param, MessageEntity.class,AccountCtrl.Account_Server_id,"app_server", o ,"getMyMessageList",true,true);
        back.method="getMyMessageList";
        return back;
    }

    /// <summary>
    ///  消息列表
    /// </summary>
    /// <param name="type">消息类型  系统消息sys   p2p点对点消息 person个人消息</param>
    /// <param name="isread">已读标志  1是 0否 -1全部</param>
    /// <returns></returns>
    public MessageEntity setMessageRead ( int msg_id , ConnectAgent... param)
    {
        MessageEntity o=new MessageEntity();
        o.setMsgId(msg_id);
        o.setIsread(1);
        MessageEntity back = (MessageEntity)Remote(param, MessageEntity.class,AccountCtrl.Account_Server_id,"app_server", o ,"setMessageRead",true,true);
        back.method="setMessageRead";
        return back;
    }

    /// <summary>
    ///  删除消息
    /// </summary>
    /// <param name="ids">id串</param>
    /// <returns></returns>
    public IAcross delMessage ( String  ids , ConnectAgent... param)
    {
        MessageEntity o=new MessageEntity();
        o.setContent(ids);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server", o ,"delMessage",true,true);
        back.method="delMessage";
        return back;
    }

    /// <summary>
    ///  消息列表
    /// </summary>
    /// <returns>Message</returns>
    public Message getMyRecvMsgList (ConnectAgent... param)
    {
        Message icall = new Message();
        icall.msg = " ";
        Message back = (Message)Remote(param, Message.class,AccountCtrl.Account_Server_id,"app_server", icall ,"getMyRecvMsgList",true,true);
        back.method="getMyRecvMsgList";
        return back;
    }

    /// <summary>
    ///  对话列表
    /// </summary>
    /// <returns>Message</returns>
    public Message getMyDLogList (int user_id, ConnectAgent... param)
    {
        Message icall = new Message();
        icall.msg = " ";
        icall.from_id = user_id;
        Message back = (Message)Remote(param, Message.class,AccountCtrl.Account_Server_id,"app_server", icall ,"getMyDLogList",true,true);
        back.method="getMyDLogList";
        return back;
    }

    /// <summary>
    ///  标记已读
    /// </summary>
    /// <returns>Message</returns>
    public IAcross MarkMessageReaden(byte[] id, ConnectAgent... param)
    {
        Message icall = new Message();
        icall.id = id;
        Message back = (Message)Remote(param, Message.class,AccountCtrl.Account_Server_id,"app_server", icall ,"MarkMessageReaden",true,true);
        back.method="MarkMessageReaden";
        return back;
    }

    /// <summary>
    ///  取下级代理
    /// </summary>
    /// <returns>Message</returns>
    public UserEntity getMyAgentList(int user_id, ConnectAgent... param)
    {
        UserEntity icall = new UserEntity();
        icall.setMobile(" ");
        icall.setUserId(user_id);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server", icall ,"getMyAgentList",true,true);
        back.method="getMyAgentList";
        return back;
    }

    /// <summary>
    /// 获得订单详细信息
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <returns></returns>
    public TaskEntity getOrderInfoss(int order_id,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);

        TaskEntity back = (TaskEntity)Remote(param, TaskEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getOrderInfoss",true,true);
        back.method="getOrderInfoss";
        return back;
    }

    /// <summary>
    /// 防骗数据库
    /// </summary>
    /// <param name="key">查询关键字</param>
    /// <returns></returns>
    public CheatdatabaseEntity getCheatData( String key, ConnectAgent... param)
    {
        //暂未建库
        CheatdatabaseEntity o=new CheatdatabaseEntity();
        o.setAccount(key);
        o.setEmail("  ");
        CheatdatabaseEntity back = (CheatdatabaseEntity)Remote(param, CheatdatabaseEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getCheatData",true,true);
        back.method="getCheatData";
        return back;
    }

    /// <summary>
    ///  搜索用户
    /// </summary>
    /// <returns>Message</returns>
    public UserEntity SearchUser(String condition, ConnectAgent... param)
    {
        UserEntity icall = new UserEntity();
        icall.setMobile(condition);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server", icall ,"SearchUser",true,true);
        back.method="SearchUser";
        return back;
    }


    public UserEntity adminLogin(String name,String password,String ip,String mac,String city, String region ,String position, ConnectAgent... param )
    {
        UserEntity o=new UserEntity();
        o.setAccount(name);
        o.setPassword(password);
        o.setLastIp(ip);
        o.setMac(mac);
        o.setCity(city);
        o.setRegion(region);
        o.setIdentitys(position);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"adminLogin",true,true);
        if(back.m_code==200)
        {
            this.account=name;
            this.password=password;
            this.ip=ip;
            this.mac=mac;
            this.city=city;
            this.region=region;
            this.islogin=true;
        }
        back.method="adminLogin";
        return back;
    }

    /// <summary>
    ///  确认导出成功
    /// </summary>
    /// <returns>Message</returns>
    public IAcross setCashExportOP(GetcashEntity icall, ConnectAgent... param)
    {
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server", icall ,"setCashExportOP",true,true);
        back.method="setCashExportOP";
        return back;
    }

    /// <summary>
    ///  设置到账
    /// </summary>
    /// <returns></returns>
    public IAcross setGetCashTD(String edate,String type, ConnectAgent... param)
    {
        GetcashEntity icall = new GetcashEntity();

        icall.setType(type);
        icall.setExportDate(Timestamp.valueOf(edate));
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",icall,"setGetCashTD",true,true);
        back.method="setGetCashTD";
        return back;
    }



    /// <summary>
    ///  用户基本信息
    /// </summary>
    /// <returns></returns>
    public UserEntity geSimpleUserInfo(int user_id,String account, ConnectAgent... param)
    {
        UserEntity o=new UserEntity();
        o.setUserId(user_id);
        o.setAccount(account);
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"geSimpleUserInfo",true,true);
        back.method="geSimpleUserInfo";
        return back;
    }

    /// <summary>
    ///  更换房间
    /// </summary>
    /// <returns></returns>
    public IAcross ChangeRoom(int user_id, int room_id, ConnectAgent... param)
    {
        UserEntity icall = new UserEntity();

        icall.setUserId(user_id);
        icall.setRoomId(room_id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",icall,"ChangeRoom",true,true);
        back.method="ChangeRoom";
        return back;
    }

    //身份认证返回处理
    public  IAcross zhimacertResult( String jsontext, ConnectAgent... param)
    {
        IAplipay obj= new IAplipay();
        obj.otherparams=jsontext;
        IAplipay jc = (IAplipay)Remote(param, IAplipay.class,AccountCtrl.Account_Server_id,"app_server",    obj,"zhimacertResult",true,true);

        return jc;
    }

    /// <summary>
    ///  群发
    /// </summary>
    /// <returns></returns>
    public IAcross RoomSendText(int room_id,int receiver, String app_type, String msg, ConnectAgent... param)
    {
        IP2P icall = new IP2P(room_id,getM_local_id(),receiver,msg,true);

        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",icall,"CGPushPoint",true,true,false,true);
        back.method="CGPushPoint";
        return back;
    }


    /// <summary>
    /// 金米记录
    /// </summary>
    /// <param name="consumTypes">消费类别字符串 (如1,2,3)</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <param name="type">1正常记录 2 冻结记录（必传项,不能传0及以下）</param>
    /// <returns></returns>
    public JinmiLogEntity getAllJinmilist(int type, String consumTypes,String startdate,String enddate, int start,int pagesize, ConnectAgent... param)
    {
        JinmiLogEntity o=new JinmiLogEntity();
        o.setId(type);
        o.setMemo(consumTypes);
        o.setStartDate(startdate);
        o.setEndDate(enddate);
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        JinmiLogEntity back = (JinmiLogEntity)Remote(param, JinmiLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAllJinmilist",true,true);
        back.method="getAllJinmilist";
        return back;
    }
    /// <summary>
    /// 米宝记录
    /// </summary>
    /// <param name="key">查询关键字</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <returns></returns>
    public MibaoLogEntity getAllMibaoList(String key,String startdate,String enddate, int start,int pagesize, ConnectAgent... param)
    {
        MibaoLogEntity o=new MibaoLogEntity();
        o.setMemo(key);
        o.setStartDate(startdate);
        o.setEndDate(enddate);
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        MibaoLogEntity back = (MibaoLogEntity)Remote(param, MibaoLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAllMibaoList",true,true);
        back.method="getAllMibaoList";
        return back;
    }
    /// <summary>
    /// 保证金记录
    /// </summary>
    /// <returns></returns>
    public DepositLogEntity getAllDepositlist(String startdate, String enddate, int start,int pagesize, ConnectAgent... param)
    {
        DepositLogEntity o=new DepositLogEntity();
        o.setMemo(" ");
        o.setStartDate(startdate);
        o.setEndDate(enddate);
        o.start=start;
        o.pagesize=pagesize;
        o.setType(" ");
        DepositLogEntity back = (DepositLogEntity)Remote(param, DepositLogEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAllDepositlist",true,true);
        back.method="getAllDepositlist";
        return back;
    }


///发送系统消息

    public  IAcross sendSysMessage(String message,  ConnectAgent... param)
    {
         MessageEntity o=new MessageEntity();
        o.setContent(message);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"sendSysMessage",true,true);
        back.method="sendSysMessage";
        return back;
    }

    /// <summary>
    /// get user list order by create_date desc
    /// </summary>
    /// <returns>UserEntity</returns>
    public UserEntity getUserListForCreateDate ( String start_date, String end_date, int start, int pagesize, ConnectAgent... param)
    {
        UserEntity icall = new UserEntity();
        icall.setNiceAccount(start_date);
        icall.setNickname(end_date);
        icall.start = start;
        icall.pagesize = pagesize;
        UserEntity back = (UserEntity)Remote(param, UserEntity.class,AccountCtrl.Account_Server_id,"app_server",icall,"getUserListForCreateDate",true,true);
        back.method="getUserListForCreateDate";
        return back;
    }

    /// <summary>
    /// 任务模板列表
    /// </summary>
    /// <param name="plat_type">平台 见枚举plattype</param>
    /// <param name="status">状态 见枚举 RegistMouldStatus</param>
    /// <param name="keyword">搜索关键字</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <returns></returns>
    public TaskMouldEntity getModuleList(String keyword,int plat_type, String status,String startdate,String enddate, int start,int pagesize, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity(start,pagesize);
        o.setPlatType(plat_type);
        o.setStatuscn(status);
        o.setPlatTypeS(keyword);
        o.setComment(startdate);
        o.setCommentOld(enddate);
        o.setAuditCn(" ");
        TaskMouldEntity back = (TaskMouldEntity)Remote(param, TaskMouldEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getModuleList",true,true);
        back.method="getModuleList";
        return back;
    }

    /// <summary>
    /// 审核模板
    /// </summary>
    /// <param name="tm_id">模板id</param>
    /// <param name="status">状态 见枚举 RegistMouldStatus  2通过 3拒绝</param>
    /// <param name="reason">拒绝原因 </param>
    /// <param name="userpay">垫付</param>
    /// <param name="requirement">接单要求</param>
    /// <param name="doFlow">接单流程</param>
    /// <param name="comment">交单条件</param>
    /// <param name="startdate">开始时间</param>
    /// <param name="enddate">结束时间</param>
    /// <param name="rental">租金</param>
    /// <param name="viceAccount">副账号</param>
    /// <param name="mainDeposit">主账号保证金</param>
    /// <param name="viceDeposit">副账号保证金</param>
    /// <param name="requireList">交单条件</param>
    /// <returns></returns>

    public IAcross  AuditTaskMould  (int tm_id, int status, String reason, String userpay, String requirement, String doFlow, String comment, Date startdate, Date enddate, String rental, String viceAccount, String mainDeposit, String viceDeposit, List<TaskMouldRequireEntity> requireList, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity( tm_id, status, reason, userpay, requirement, doFlow, comment, startdate, enddate, rental, viceAccount,mainDeposit,viceDeposit, requireList);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"AuditTaskMould",true,true);
        back.method="AuditTaskMould";
        return back;
    }
    /// <summary>
    ///  模板详细信息
    /// </summary>
    /// <param name="tm_id">模板id</param>
    /// <returns></returns>
    public TaskMouldEntity getMoluldInfo(int tm_Id, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity(tm_Id);
        TaskMouldEntity back = (TaskMouldEntity)Remote(param, TaskMouldEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getMoluldInfo",true,true);
        back.method="getMoluldInfo";
        return back;

    }

    /// <summary>
    ///  模板缴费
    /// </summary>
    /// <param name="tm_id">模板id</param>
    /// <returns></returns>
    public IAcross payMould(int tm_Id, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity(tm_Id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"payMould",true,true);
        back.method="payMould";
        return back;

    }
    /// <summary>
    ///  提前结束
    /// </summary>
    /// <param name="tm_id">模板id</param>
    /// <returns></returns>
    public IAcross overMould(int tm_Id, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity(tm_Id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"overMould",true,true);
        back.method="overMould";
        return back;

    }
    /// <summary>
    ///  取消模板申请
    /// </summary>
    /// <param name="tm_id">模板id</param>
    /// <returns></returns>
    public IAcross cancleMould(int tm_Id, ConnectAgent... param)
    {
        TaskMouldEntity o=new TaskMouldEntity(tm_Id);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"cancleMould",true,true);
        back.method="cancleMould";
        return back;

    }
    /// <summary>
    /// 刷手点击做单完成
    /// </summary>
    /// <param name="order_id">订单id</param>
    /// <param name="ordercode">淘宝或京东订单编号</param>
    /// <returns></returns>
    public IAcross overOrderSS(int order_id,String ordercode,String registOvers ,ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setOrderId(order_id);
        o.setOrderCode(ordercode);
        o.setRegistOvers(registOvers);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"overOrderSS",true,true);
        back.method="overOrderSS";
        return back;
    }
    /// <summary>
    /// 广告列表
    /// </summary>
    /// <param name="viewps">viewps 1前台显示 2管理端显示</param>
    /// <param name="status">1 启用 0停用 -1全部</param>
    /// <param name="device">设备  pc  andriod  ios</param>
    /// <param name="position">位置 如"1" "2" 等,具体跟客户确定</param>
    /// <returns></returns>
    public AdvertEntity getAdverList(int viewps, int status,String device,String position,int start,int pagesize,ConnectAgent... param)
    {
        AdvertEntity o=new AdvertEntity();
        o.setStatus(status);
        o.setDevice(device);
        o.setPosition(position);
        o.start=start;
        o.pagesize=pagesize;
        o.setCreateId(viewps);
        AdvertEntity back = (AdvertEntity)Remote(param, AdvertEntity.class,AccountCtrl.Account_Server_id,"app_server",o,"getAdverList",true,true);
        back.method="getAdverList";
        return back;
    }

    /////////////////////////未实现/////////////////////////////////




    public IAcross SendTest (int uid,  ConnectAgent... param)
    {
        OrderEntity o=new OrderEntity();
        o.setCreateId(uid);
        IAcross back = (IAcross)Remote(param, IAcross.class,AccountCtrl.Account_Server_id,"app_server",o,"SendTest",true,true);
        back.method="SendTest";
        return back;
    }
}
